﻿@using Nop.Plugin.Payments.LibraPay.Models;
@using Nop.Web.Framework;
@model ConfigurationModel

@{
	Layout = "";
}

<p>@ViewBag.Confirmation &nbsp;</p>
@using (Html.BeginForm())
{
	<table class="adminContent">
		<tr>
			<td colspan="2">
				<p>&nbsp;</p>
				<p><b>@T("Plugins.Payments.LibraPay.Config.Notes")</b></p>
				<p>&nbsp;</p>
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.URLforIPN):
			</td>
			<td class="adminData">
				<p><b>@Model.URLforIPN</b></p>
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.UseSandbox):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.UseSandbox)
				@Html.ValidationMessageFor(model => model.UseSandbox)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.NotifyBeforeRedirect):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.NotifyBeforeRedirect)
				@Html.ValidationMessageFor(model => model.NotifyBeforeRedirect)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.MerchantName):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.MerchantName)
				@Html.ValidationMessageFor(model => model.MerchantName)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.MerchantURL):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.MerchantURL)
				@Html.ValidationMessageFor(model => model.MerchantURL)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.MerchantEmail):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.MerchantEmail)
				@Html.ValidationMessageFor(model => model.MerchantEmail)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.EncryptionKey):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.EncryptionKey)
				@Html.ValidationMessageFor(model => model.EncryptionKey)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.TerminalId):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.TerminalId)
				@Html.ValidationMessageFor(model => model.TerminalId)
			</td>
		</tr>
		<tr>
			<td class="adminTitle">
				@Html.NopLabelFor(model => model.AdditionalFee):
			</td>
			<td class="adminData">
				@Html.EditorFor(model => model.AdditionalFee)
				@Html.ValidationMessageFor(model => model.AdditionalFee)
			</td>
		</tr>
		<tr>
			<td colspan="2" width="100%">
				<input type="submit" name="save" class="k-button" value="@T("Admin.Common.Save")" />
			</td>
		</tr>
	</table>
}